<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@include file="/common/common.jspf" %>
<style>
<!--
.h10{
	height: 10px;
}
-->
</style>
	<header class="panel-heading">
	<div class="doc-buttons">
		<c:forEach items="${res}" var="key">
			${key.description}
		</c:forEach>
	</div>
	</header>
	<div class="table-responsive">
		<div id="paging" class="pagclass"></div>
	</div>
	
<script type="text/javascript">

var dict = [];
<c:forEach items="${dict }" var="record">
dict.push({'value':'${record.value}','label':'${record.label}'});
</c:forEach>
var detailId='${detailId}';
var pageii = null;
var grid = null;
$(function() {
	grid = lyGrid({
		pagId : 'paging',
		l_column : [ {
			colkey : "integral",
			name : "积分来源/积分抵扣",
			renderData : function(rowindex,data, rowdata, column) {
				if(data>0){
					return "<span title='"+data+"'>+"+data+"</span>";	
				}else{
					return "<span title='"+data+"'>"+data+"</span>";
				}
				
			}
		}, {
			colkey : "balance",
			name : "当前积分",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span title='"+data+"'>"+data+"</span>";
			}
		}, {
			colkey : "description",
			name : "描述",
			renderData : function(rowindex,data, rowdata, column) {
				return "<span title='"+data+"'>"+data+"</span>";
			}
		},  {
			colkey : "createTime",
			name : "积分来源/抵扣时间",
			renderData : function(rowindex,data, rowdata, column) {
				data = new Date(data).format("yyyy-MM-dd hh:mm:ss");
				return "<span title='"+data+"'>"+data+"</span>";
			}
		}
		],
		jsonUrl : rootPath + '/integral/viewOrgDetail.shtml?id='+detailId,
		checkbox : true
	});
});

</script>